package com.liholin.springboot.sample.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yishengzhiju
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Useraccount extends Model<Useraccount> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String hguid;

    private String mobile;

    /**
     * 密码
     */
    private String password;

    private Integer userstatus;

    @TableField("userName")
    private String userName;

    private String userqr;

    private Integer sex;

    private Boolean isonline;

    private Long unixts = System.currentTimeMillis();

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;

    private LocalDateTime lastchangetime;

    private Boolean isactive;

    private String headphoto;

    private LocalDateTime ts;

    /**
     * 邀请码
     */
    private String invitationcode;

    private String description;

    private Integer level;
    /**
     * 是否是管理员
     */
    private Boolean webadmin;

    private String relationId;
    /**
     * 会员管理员的id
     */
    private Integer managerId;

    @Override
    public Serializable pkVal() {
        return null;
    }

}
